package org.example.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.example.config.R;
import org.example.domain.Crop;
import org.example.domain.Grow;
import org.example.service.CropService;
import org.example.service.GrowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("grow")
@RestController
public class GrowController {
    @Autowired
    GrowService growService;

    @RequestMapping("add")
    public R addGrow(@RequestBody Grow grow,Integer uid){
        return growService.addGrow(grow,uid);
    }


}
